Part Number Hot Search : 
3KP160CA BDY71 N4002 A5954 MMBTA42 AF35TC AK6003AV YLB2400
Product Description
Full Text Search
 

To Download 2002057 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
PM2355
FRAME RELAY PORT CARD
DEVELOPMENT KIT
PLATFORM
RELEASED ISSUE 2: JANUARY 2001
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
REVISION HISTORY Issue No. Issue 2 Issue 1 Issue Date January 2001 December 2000 Details of Change Minor updates to directory structure Figure 7. and Table 3 Document created
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
CONTENTS 1 INTRODUCTION...................................................................................... 1 1.1 1.2 1.3 1.4 2 3 PURPOSE..................................................................................... 1 SCOPE.......................................................................................... 1 APPLICATION............................................................................... 2 DOCUMENTATION ....................................................................... 2
GLOSSARY ............................................................................................. 4 GENERAL DESCRIPTION....................................................................... 5 3.1 FRPC DEVELOPMENT KIT PLATFORM ARCHITECTURE......... 5
4 5
TARGET MACHINE HARDWARE CONFIGURATION............................. 7 SOFTWARE............................................................................................. 8 5.1 5.2 5.3 5.4 5.5 5.6 TARGET APPLICATION - DESIGN .............................................. 8 FRAMEWORK .............................................................................. 9 PLATFORM SUPPORT LAYER .................................................... 9 DEVICE INTERFACE LAYER ....................................................... 9 DEVICE DRIVER LAYER............................................................ 10 SOFTWARE DEVICE INTERFACE CONCEPT .......................... 10 5.6.1 COMMAND HANDLING ................................................... 12 5.6.2 DOWNLOADABLE DATA BLOCKS.................................. 13 5.6.3 SCRIPTS IN BLOCKS ...................................................... 13 5.6.4 REPETITIVE COMMANDS .............................................. 13 5.7 HOST APPLICATIONS................................................................ 15 5.7.1 HOSTAPP DESCRIPTION ............................................... 15
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
i
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
5.7.2 HOSTAPP FUNCTIONS................................................... 17 5.8 5.9 6 TCL COMMAND PROCESSOR .................................................. 19 HYPERTERMINAL ...................................................................... 20
INSTALLATION PROCEDURE .............................................................. 21 6.1 SOFTWARE ON THE REMOTE COMMAND MACHINE............ 21 6.1.1 FILES................................................................................ 21 6.1.2 BLOCKS ........................................................................... 22 6.2 TARGET APPLICATION CODE: VXWORKS PLATFORM.......... 22 6.2.1 TARGET MACHINE SOFTWARE CONFIGURATION...... 22 6.2.2 HARD DISK FORMATTING.............................................. 22 6.2.3 TARGET PLATFORM DIRECTORY STRUCTURE .......... 23 6.2.4 SOFTWARE INSTALLATION ON THE TARGET PLATFORM24 6.2.5 MAKING THE VXWORKS BOOT FLOPPY...................... 24 6.2.6 SOFTWARE INSTALLATION STEPS .............................. 25 6.3 6.4 TARGET APPLICATION CODE: MC68340 MICROPROCESSOR PLATFORM ................................................................................. 26 PMC-SIERRA DEVELOPMENT KIT DISTRIBUTION CD-ROM.. 26
7 8
TARGET SYSTEM STARTUP ............................................................... 29 OPERATIONS........................................................................................ 31 8.1 8.2 8.3 8.4 8.5 T1 MODE .................................................................................... 31 E1 MODE .................................................................................... 31 DS-3 MODE ................................................................................ 32 UNCHANNELIZED DS-3 MODE ................................................. 32 T1 SERIAL CLOCK AND DATA VIA QDSX ................................. 33
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
ii
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
9
APPENDIX A: COMMAND SET ............................................................. 34 9.1 GENERAL COMMANDS ............................................................. 34 9.1.1 COMMAND HANDLER..................................................... 34 9.1.2 COMMUNICATION PORT CONTROL ............................. 35 9.1.3 BLOCK HANDLING .......................................................... 35 9.1.4 FILE HANDLING .............................................................. 35 9.1.5 DEVICE GENERIC COMMANDS..................................... 36 9.1.6 BOARD SPECIFIC COMMANDS ..................................... 37
10
APPENDIX B: BLOCK FILES DESCRIPTION ....................................... 42 10.1 TEMUXCONFIG_ALL_T1.TXT ................................................... 42 10.1.1 WORKING AND PROTECTION SPECTRA-155 CONFIGURATION............................................................ 42 10.1.2 TEMUX #1- TEMUX#3 ..................................................... 42 10.2 10.3 10.4 10.5 10.6 10.7 TEMUX_SBI.TXT ........................................................................ 43 FRD_START.TXT ........................................................................ 43 FRD_FIX.TXT.............................................................................. 43 FRDPROV_CHALL_T1.TXT ....................................................... 43 FRD_TX.TXT............................................................................... 44 FRD_STST.TXT .......................................................................... 45
11 12 13 14
APPENDIX D: HOW TO REBUILD THE MC68340 APPLICATION ....... 46 APPENDIX E: HOW TO BUILD VXWORKS KERNAL AND BSP PACKAGE .............................................................................................. 47 APPENDIX F: HOW TO REBUILD THE VXWORKS APPLICATION..... 49 APPENDIX G: CREATING VXWORKS BOOT FLOPPY ....................... 52
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
iii
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
15 16
APPENDIX H: CONTENTS OF THE VXWORKS.TXT STARTUP SCRIPT ............................................................................................................... 53 APPENDIX I: HYPERTERMINAL CONFIGURATION............................ 54
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
iv
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
LIST OF FIGURES FIGURE 1 FRAME RELAY PORT CARD SYSTEM CONFIGURATION............ 5 FIGURE 2 COMMUNICATION BETWEEN COMMAND AND TARGET MACHINES......................................................................................................... 6 FIGURE 3 TARGET SOFTWARE ..................................................................... 8 FIGURE 4 FRPC ELEMENTS AND CONNECTIONS ......................................11 FIGURE 5 HOSTAPP MAIN WINDOW ........................................................... 15 FIGURE 6 TARGET PLATFORM DIRECTORY STRUCTURE........................ 23 FIGURE 7 FRPC DISTRIBUTION CD-ROM DIRECTORY STRUCTURE ...... 28 FIGURE 8 FRD_START COMMAND FORMAT............................................... 43 FIGURE 9 RXPROV, TXPROV COMMAND FORMAT.................................... 44 FIGURE 10RXPROX, TXPROV TIMESLOT VALUE DETERMINATION.......... 44 FIGURE 11 TRANSMIT COMMAND FORMAT ................................................. 45 FIGURE 12CONTENTS OF THE VXWORKS.TXT STARTUP SCRIPT .......... 53 FIGURE 13SETTING UP THE HYPERTERMINAL PROPERTIES .................. 54 FIGURE 14HYPERTERMINAL PROPERTIES BOX ........................................ 55 FIGURE 15COM PORT SETTINGS................................................................. 56 FIGURE 16HYPERTERMINAL SETTINGS DIALOG ....................................... 57 FIGURE 17ASCII SETUP DIALOG .................................................................. 58
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
v
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
LIST OF TABLES TABLE 1 TABLE 2 DRIVE TABLE 3 ROM 26 REFERENCE DOCUMENTS ON DISTRIBUTION CD-ROM........... 2 DIRECTORY STRUCTURE ON THE TARGET MACHINE HARD 23 CONTENTS OF THE DEVELOPMENT KIT DISTRIBUTION CD-
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
vi
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
1
INTRODUCTION The Frame Relay Port Card Development Kit Platform is the hardware platform on which the PMC-Sierra Frame Relay Port Card Development Kit board and application software can be tested and verified. The purpose of this development platform is to help PMC-Sierra's customers in reducing their application software development cycle. The Frame Relay Port Card Development Kit consists of: * * Frame Relay Port Card Development Kit Board Frame Relay Port Card Development Kit software and documentation on the accompanying CD-ROM.
Please note that: * The Pentium-based PC is not supplied by PMC-Sierra. The PC platform and its hardware and software configuration are the user's responsibility. The WindRiver Tornado 2 integrated development environment is not supplied by PMC-Sierra. If the user wants to continue development on the VxWorks OS it is the user's responsibility to purchase and configure the Tornado 2 development environment. The source code on the Frame Relay Port Card Development Kit Platform CD-ROM is distributed "as is". There is no backward compatibility with the latest software releases and the distributed source code shall be used for informational purposes only.
*
*
1.1
Purpose This document provides a detailed software specification for the Frame Relay Port Card Development Kit Platform.
1.2
Scope This document describes hardware and software requirements for the Frame Relay Port Card Development Kit Platform without going into the specifics of the PMC-Sierra Frame Relay Port Card Development Kit board. It describes the Frame Relay Port Card Development Kit Platform in the level of detail required to
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
1
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
configure and run the system. This document also contains a detailed software installation procedure. 1.3 Application This document is designed for embedded systems development based on the functionality of the PMC-Sierra devices included in this design, namely the PM7384 FREEDM-84P672, PM8315 TEMUX, PM5342 SPECTRA-155, and PM4314 QDSX. 1.4 Documentation The following documents are included on the distribution CD-ROM. Table 1
PRODUCT NUMBER PM7384 PM7384 PM7384 PM7384
Reference Documents on Distribution CD-ROM
DESCRIPTION FRAME ENGINE AND DATALINK MANAGER 84P672 (FREEDM-84P672) Data Sheet FREEDM-84P672 Programmer's Guide FREEDM-84P672 Revision C Device Errata Answers to Frequently Asked Questions Regarding the FREEDM-32P672, FREEDM-84P672, FREEDM-32A672 and FREEDM-84A672 Density Solutions with TEMUX and FREEDM-84 FREEDM-84P672 Frame Engine and Datalink Manager Short Form Data Sheet FREEDM-84P672 PCI Bus Utilization and Latency Analysis High Density T1/E1 Framer with Integrated VT/TU Mapper and M13 Multiplexer Telecom Standard Product Data Sheet High Density T1/E1 Framer with Integrated VT/TU Mapper and M13 Multiplexer Telecom Standard Product Register Descriptions Technical Overview of the High Density T1/E1 Framer with Integrated VT/TU Mapper and M13 Multiplexer Telecom Standard Product PM8315 TEMUX High Density T1/E1 Framer with Integrated VT/TU Mapper and M13 Mux Short Form Data Sheet Frame Relay Port Card Reference Design TEMUX Programmer's Guide Answers to Frequently Asked Questions Regarding the TEMUX SONET/SDH Payload Extractor/Aligner Telecom Standard Product Data Sheet DOCUMENT NUMBER PMC-1990445 PMC-1990715 PMC-2000953 PMC-2001119
PM7484 PM8315 PM7384 PM7384 PM8315 PM8315
PMC-1991202 PMC-1991024 PMC-1990863 PMC-1981125 PMC-1900495
PM8315
PMC-1981141
PM8315 PM8315 PM8315 PM8315 PM5342
PMC-1971264 PMC-1990533 PMC-1991268 PMC-2000800 PMC-1970133
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
2
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
PM5342 PM5342 PM4314 PM4314
SONET/SDH Payload Extractor/Aligner Errata Suggestions for SPECTRA-155 PECL Terminations QUAD T1/E1 Line Interface Device Telecom Standard Product Data Sheet QUAD T1/E1 Line Interface Unit Short Form Data Sheet
PMC-2001737 PMC-1970938 PMC-1950857 PMC-1941034
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
3
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
2
GLOSSARY FRPC HOST Target Machine BSP OS BIOS I/F S/W H/W APS Freedm Spectra Frame Relay Port Card Used interchangeably with the Remote Command Machine Hardware platform where FRPC Development Kit Board resides. Board Support Package Operating System Basic Input Output System Interface Software Hardware Automatic Protection Switching FREEDM-84P672 SPECTRA-155
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
4
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
3 3.1
GENERAL DESCRIPTION FRPC Development Kit Platform Architecture The full development platform consists of two basic components: * * Target Machine Remote Command Machine
Frame Relay Port Card
cPCI host processor Compact PCI Development Shelf (Target Machine)
Remote Command Machine
Figure 1
Frame Relay Port Card System Configuration
The target machine acts as the hardware support for the PMC-Sierra FRPC Development Kit Board. To extend the testing and development capabilities of the basic system, the Remote Command Machine has been added. The communication link is serial RS232. The Remote Command Machine runs user applications (such as HostApp), simple terminal applications, or is used with some more powerful tools (such as TCL) for testing and development that is not supported on the Target Machine. In order to establish communication with the target machine, the user must connect the remote and target machines via an RS-232 cable.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
5
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
TargetMachine
RemoteCommandMachine
SerialCommand SerialResponse
Figure 2
Communication between command and target machines
Using a serial connection, the user can send a predefined set of commands (supported by the application software supplied by PMC-Sierra or the user) and have the commands executed on the target system. The application software will send responses back to the Remote Command Machine.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
6
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
4
TARGET MACHINE HARDWARE CONFIGURATION The following represents the minimum hardware requirements for the target system: * CompactPCI chassis with Intel Pentium based single board computer (minimum 233MHz). System was developed and tested on CPV5000 SBC. Two available serial communication ports (required for communication with the Remote Command Machine and microprocessor controlled part of the system) capable of sending and receiving data at a minimum of 115200 bps and 38400 bps respectively. Standard 1.44 MB Floppy Disk Drive IDE Hard Disk Drive. Recommended size is 2.1GB. Keyboard VGA Video Adapter VGA Compatible Monitor
*
* * * * *
Network card is optional. PMC-Sierra does not provide network support software for the target platform. It is up to user to add networking capabilities to the target system. Video Graphic Capabilities. There is no requirement for any graphical capabilities of the video card on the target machine since the system will run in text mode.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
7
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
5 5.1
SOFTWARE Target Application - Design The purpose of this section is to introduce specific software design concepts that will help the user understand the software related discussions later in the document, while also providing basic knowledge to those users who want to add their own code to the existing application. The application code may be divided into four major software layers, as shown in Figure 3. These layers are: 1. Platform Support Layer 2. Framework 3. Device Interface Layer (Application specific layer) 4. Device Drivers
PMC-Sierra Devices Target Software Device Drivers DD APIs F R A M E W O R K
Device Interface Layer
Platform Support Layer
Platform H/W
Figure 3
Target Software
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
8
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
5.2
Framework The framework is a software wrapper that provides infrastructure to the rest of the application code. The framework is designed and implemented to be platform and application independent. Together with platform support and application specific modules, the framework is incorporated in the application executable (e.g. frpc.out for VxWorks platform or main.s19 in the case of MC68340). Infrastructure services provided by the framework consist of the following functions: * * * * * * Scheduling. Event processing and notification. Timer services. Command parsing and distributing. Data block transfer and processing. Inter and intra board communication services.
In the FRPC application, the same framework code runs on both the VxWorks and MC68340 platforms. The framework sources are located on the \dev\codebase directory of the distribution CD. 5.3 Platform Support Layer Platform support code consists of low level s/w routines that provide the framework with necessary porting functions. The standard set of platform support routines include: Clock handler, Semaphores, Serial Port drivers and various interrupt handlers. Source files that belong to this layer of code are located on the distribution CD under the \dev\platform directory. 5.4 Device Interface Layer This is application specific layer of the code that deals with the PMC-Sierra devices present in the system. Typically there is one device interface per each type of PMC-Sierra device, hence there is one handler for the FREEDM-
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
9
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
84P672device, one for TEMUX, SPECTRA-155 etc. The device interface modules provide command and event handlers and other higher level routines needed to implement application requirements. The device interface files can be found in the \dev\if directory. 5.5 Device Driver Layer For an in depth description of the device drivers, please refer to the corresponding device driver specification provided on the distribution CD. In the software implementation of the FRPC, only the FREEDM-84P672 device driver is being used. This is due to the fact that reference design drivers are implemented for VxWorks platforms only and FREEDM-84P672 is the only device operating in this environment. Low level routines for other PMC-Sierra devices provide only basic I/O routines and are available through the platform support code. The FREEDM-84P672 device driver code can be found in the \dev\drv\freedmng\ directory. 5.6 Software Device Interface Concept The concept of the software device interface, as implemented in this design represents a software abstraction for a physical device (e.g. chip, COM ports, timers) or an abstraction for a s/w module that provides some functionality to the rest of the system (e.g. board, command parser, loader). Our system consists of two target platforms: * * Board0 - Master Target. CompactPCI based Pentium platform that executes the framework and the application code under VxWorks OS. Board1 - Node Target. Microprocessor MC68340 platform that executes the framework with the application code.
As mentioned previously, the PMC-Sierra devices present on the Frame Relay Port Card are the FREEDM-84P672, three TEMUX devices, two SPECTRA155s and the QDSX. The FREEDM-84P672 device exists in the PCI address space and is controlled by the Pentium processor through the PCI bus. The other PMC-Sierra devices (TEMUX#1,2,3, QDSX, working and protection SPECTRA155s) are memory mapped in the microprocessor address space and can only be controlled by the on board microprocessor MC68340.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
10
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
Communication between the host application and the target system is established through one of the host COM ports and COM1 on the master target. Communication between master target (Board0) and the node target (Board1) runs over COM2 on the master target and COM1on the node. Commands that the host sends to the node target are first processed on the master target and then streamed to Board1. Responses that the node sends to the host application are received by the master first and then dispatched to the host. From a software perspective, all the devices are grouped according to the board in which they logically belong. For example, the FREEDM-84P672 device is physically present on the FRPC but it can only be accessed through the VxWorks board, hence it belongs to Board0. Conversely, all other devices (TEMUX, Working SPECTRA-155 etc) belong to Board1 since they are controlled using the MC68340. The following figure shows FRPC system as viewed by the software.
WinNT Host FRPC Application
RS-232
Logical Board0 FRPC Application on Pentium
TCL
Freedm
PCI Bus RS-232
HyperTerminal
SBI Bus Micro Bus
Tmx1
Tmx2
Tmx3
Telecom Bus Spectra_w Spectra_P
FRPC Application on MC68340
Logical Board1
Optical interface
Figure 4
FRPC Elements and Connections
The following software devices are located on logical board0: * Board0 - VxWorks target. This abstraction is needed since file and block downloads and block executions go through it.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
11
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
*
Board1 - Device name that represents interface for the next logical board in the chain. Logical boards in our system are chained using serial interfaces. Access to a remote logical board (e.g. logical board1) goes through logical Board0. Com1 - Communication port connecting target machine to the host (remote command machine). Port is set to run at 115Kbps. Com2 - Communication port connecting board0 to board1. Port is set to run at 38.4Kbps. Data rate is set to a maximum matching speed. Cmd - command parser interface. Freedm - freedm device handler.
* * * *
The following software devices are located on logical board1: * * * * * * Board1 - 68K target Com1 - Communication port connecting board1 to board0. Port is set to run at 38.4kbps. Cmd - Command parser interface. Temux1, Temux2, Temux3 - The TEMUX device handlers. Spectra_W, Spectra_P - The SPECTRA-155 device handlers. Micro - Microprocessor device needed to control Automatic Protection Switching.
5.6.1 Command Handling Handlers for every logical device in the system register the set of commands it supports to the framework Registration takes place at the handler's initialization time. The framework keeps a per device list of commands and whenever new command line is received, the framework tries to match command name with names from the command list for that particular device. If a valid command is found, the framework invokes the registered handler. Appendix A gives the complete list of commands with explanations.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
12
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
5.6.2 Downloadable Data Blocks Data blocks are software structures implemented for passing larger chunks of data between nodes in the system. Block transfer guarantees consistency of delivered data, yet does not guarantee delivery. No assumptions on the nature of the transferred data are made. A block may be loaded to target system memory, or sent to a file if the system has a hard drive. Block transfer to remote nodes is also implemented. The primary use of blocks is as follows: * Downloading complete script files that would execute on the target machine (as oppose to executing scripts on the host and sending commands one at the time). Commands contained in a block can be executed by issuing `exec' command (e.g. exec boardN block blockName param). Once downloaded, data block may be executed any number of times with a different device name as a parameter. Scripting language provided locally on target is explained in the next section. Blocks are used when downloading files from host to target. This capability proves to be very useful for uploading target executable code built on host. Blocks are also used to enable the host application to transmit large messages via the optical interface.
*
*
5.6.3 Scripts in Blocks The scripting processor interprets the full command set, listed in Appendix A. Scripts may only contain command lines. Comments and blank lines are not permitted (an empty line is considered as an end of file marker). Examples: write temux1 01 48 write temux1 1200 4A 5.6.4 Repetitive Commands This feature helps make smaller and more efficient scripts. Every repetitive command maintains an iteration counter that can be used in expressions in that
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
13
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
line. The symbol used in expressions to refer to the iteration counter is `%' (during execution, % is replaced by the value of the counter). The syntax is shown below: Command devName rep[start,stop,step] ... where: Command - Device generic command such as read or write. devName - Represents one of the recognized device names, such as temux1, temux2, temux3, spectra_w, spectra_p, qdsx, or freedm. rep[start,stop,step] - Represents the starting and stopping value of the iteration counter (denoted by %), as well as the counter increment. - simple mathematical expression that uses basic operations "+ - * / ". Space character is argument separator and may not be part of an expression. Counter parameters start/stop/step are decimal digits while other parameters follow the rules described in Appendix A. The iteration counter starts at START, incrementing by STEP (step may be negative) until the counter reaches the STOP value. Arguments in the repetitive command are separated with spaces. Since rep[x,y,z] and expressions are considered to be arguments, they may not contain space characters. Examples: /*writes 00 to TEMUX#1 registers 0x9c, 11c,...141c write temux1 rep[1,28,1] 001c+80*% 00 /*writes C0 to TEMUX#1 registers 1240, 1242,..., 1252 write temux1 rep[0,12,2] 1240+% C0 /* reads from TEMUX#2 registers: 0x41, 0x81, ...,0x181 */ read temux2 rep[1,6,1] 40*%+1 /* writes 2 to FREEDM-84P672 registers 0x01, 0x11, 0x21, ...0x91 */ write freedm rep[0,9,1] 10*%+1 2
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
14
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
5.7
Host Applications Since communication to the target machine is established using standard RS232 protocol, any host application supporting this protocol may be used. As a part of this SDK, the Windows based application "HostApp" is provided. It is a custom built GUI to showcase the functionality of the Frame Relay Port Card. The majority of this section is dedicated to introducing its features. During the development phase of this product, other standard Windows packages had also been used for various reasons. One of the most frequently used applications was TCL. The details on how to set up the TCL environment are provided the paragraph 5.8.
5.7.1 HostApp Description HostApp is a Windows based GUI that enables users to conveniently send commands and graphically present the results. Standard Windows file utility My Computer may be used to locate and start execution of the application file HostApp.exe. Figure 5 depicts the application main window.
Figure 5
HostApp Main Window
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
15
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
In order to view the results of device interaction (for example, a read), the user must open the Terminal Window, by selecting the Terminal Window option in the View menu. As shown in the figure above, device Temux2 on logical Board1 is selected. If the user wants to execute any of Temux2's commands (e.g. read from register 0x10) it is sufficient to enter "read 10" and the command line will be automatically completed with the device name and the reference to the appropriate board (command is sent upon clicking the Send button). For example, to read temux1 register 01, select board1 in the Boards selection pane, and temux1 in the Devices selection pane. Type "read 01" in the Command dialog box, and click Send. The results of this read operation can be viewed in the Terminal Window. Automatic device name insertion can be avoided by typing in the full command line. Note that to use this alternative method, the appropriate board (example, board0 for FREEDM-84P762 access, board1 for Temux1 access) must be selected in the Boards selection pane. In addition, board0 or board1 must be selected in the Devices selection pane. Then type the full command (eg read temux1 01) in the Command dialog box. The following is a list of the features supported by this application: * * * * * * List of devices in the system grouped by boards (as shown on Figure 5) Command entry that relates command to selected board and device. Terminal Window - displays data received over the communication port. Debug Window - host application control and debugging information. Block and file load and execute - menu driven aid for downloading and executing blocks and files. Message control. Enables message composing and transmitting through the selected channel, receive and transmit message display setup, loop-back control and statistics display. The statistics window will be periodically updated. APS monitor. Automatic Protection Switching control command activates one of the available SPECTRA-155 devices and initializes signal monitoring. In the case of signal loss on the active SPECTRA-
*
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
16
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
155, APS automatically switches to the protection SPECTRA-155. The host monitor shows real-time information on the currently active device. * * 5.7.2 Real-time register Watch feature. System Self-test
HostApp Functions This section describes the functionality provided by the Frame Relay Port Card HostApp. The main application window is shown in Figure 5. Drop Down menus: File Open - function to open system description file App.def. Properties - communication port setup. Exit View Debug - host application debug window. Terminal - terminal receiver window. Shows all characters received from the target system. Function Block Load - file menu to select file(s) to be downloaded as a script block to the memory on the board selected in the board window. Execute - block selection menu. Dir command will first be executed to display the list of loaded blocks. One or more blocks from the displayed list may then be selected for execution. Dir - displays the list of blocks loaded on the selected board. Delete - block selection menu. Dir command will first be executed to display the list of loaded blocks. One or more blocks from the displayed list may then be selected for deletion. File - these functions are available for boards containing a disk drive.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
17
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
Load - file menu to select file(s) to be downloaded to the disk drive of the board selected in the board window. Dir - displays the list of files present on the current directory of the selected board. The list will include "." and "..' symbols for current and parent directories. Message Composer - Edit window for composing outgoing message. User has to specify the transmission channel and may set repeat count so that the same message gets transmitted more then once. This feature is intended for demonstrating APS capability. Composed message will first be downloaded to the target platform, and then submitted to the FREEDM-84P672 device driver for transmission. Settings Rx Channel - Packet display settings for the selected receive channel. Received data may be displayed on either the host or target monitor. If host display mode is specified, a read only display window will be displayed. The RxChannel field at the bottom of that window is also read only, and editing it will have no effect on the channel displayed. To suppress data display, set toggle switch to off. Tx Channel - Packet display settings for the selected transmit channel. Loop-back - Setup for different loop-back modes. The FREEDM-84P672 device driver supports channel loopback, diagnostic channel loop-back, and link loop-back. Packet Statistics Channel - Requests display of the packet statistics for the selected channel. If the periodic field is set, channel statistics will periodically be updated. Link - Requests display of the packet statistics for the selected link. If the periodic field is set, link statistics will periodically be updated. Other - Requests display of other available statistics. If the periodic field is set, various other statistics will periodically be updated. Register Watch - Window that displays and periodically updates register values. Values are updated every 5sec, unless a different
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
18
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
value for the period is given. All watches on the same device are parts of the same watch interface, hence a period change for one of the monitored registers will affect the others. Watches for each device are independently updated. Self-test - This function is primarily added to enable fast system testing. Self-test configures the path for the packet loop-back at the optical interface. The test will be successful if the packet transmitted over the specified channel is received unchanged on the same channel. The user is prompted to select a file (generally Setup.ini) that contains the list of blocks that are to be loaded and executed on the target platforms. Blocks are processed in the order they appear in the file. Upon execution of the last block, the system waits a couple of seconds to receive notification that test is OK and displays appropriate message. Note: Test requires that one fibre optic cable be connected between the optical receive and transmit outputs of the Working SPECTRA-155. Automatic Protection Switching (APS) - A function to monitor the currently active SPECTRA-155. Switching between working and protection devices is done automatically as soon as interrupt handling for both SPECTRA-155s is enabled. 5.8 TCL Command Processor In order for TCL to communicate with the target system, the user needs to setup various serial port parameters to the values the target computer expects. The current configuration is 115200bps, 8bits, 1stop bit. There are no special requirements for the commands the TCL processor sends to the logical Board1 as long as the syntax described in Appendix A is used. Note that commands directed to logical Board1 first have to be recognized by Board0's parser prefix and then sent to Board1. In order for this parser to recognize commands sent to Board1, "send remote" has to be placed at the beginning of each command line. Example: /*command to read from register 0x15 on temux2 */ send remote read temux2 15
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
19
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
5.9
HyperTerminal All the rules that the TCL processor needs to follow in order to communicate with the target system apply for Hyper-Terminal as well. For details on how to set Hyper-Terminal communication parameters, please refer to Appendix I.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
20
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
6
INSTALLATION PROCEDURE The software for the FRPC consists of four major parts. VxWorks Kernel files and Pentium BSP boot floppy disk, application code running on the VxWorks target, application code running on the Motorola MC68340 microprocessor (located in EPROM), and the host application (typically HostApp).
6.1
Software on the Remote Command Machine Paragraph 5.7 details requirements for the host application software. This section explains installation procedure for the HostApp host application.
6.1.1 Files The FRPC host application, HostApp, consists of 5 files. Files are located on the distribution CD in the \Dev\Platform\Win directory. These files are: HostApp.exe, HostApp.ini, App.def and two Board.h files. HostApp.exe - this file contains application executable code. Its main purpose is to make command entry easier and more intuitive, while providing necessary display support so that the user knows what is happening on the target system. The HostApp program is designed so that it is easy to add more application specific functionality. HostApp.ini - The standard ini file that contains application configuration information (com-port settings, etc.) and user setup (location of the target system definition file, recent selections, etc.). This file is automatically created and updated by the application program. App.def - A target system definition file (ASCII format) with references to board description files. Includes file(s) board.h used to build the target applications by reading board configuration information. Board.h - One per target board with code executing on it. This is a standard .H file that contains a list of software devices on this board. The term "software device" is explained in the section "FRPC Software Devices". 6.1.1.1 Installation The host code installation process is quite simple. Application executable HostApp.exe, ini file HostApp.ini. Definition file App.def may be located anywhere in the system, since it can be located using the File/Open menu. Once found, the
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
21
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
location of this file will be kept in the initialization file hostApp.ini. If definition file is located in the same directory with the previous two, it will be automatically opened. H files could be located elsewhere as long as app.def points to the correct location. 6.1.2 Blocks Blocks are files containing scripts to be executed on the target system (details are given in the Paragraph 5.6.2 and the Appendix B). The purpose of the blocks provided with this SDK is in enabling users to quickly setup target systems. In order to execute block it needs to be downloaded from the host to the target. Though blocks may be downloaded from the distribution CD it is recommended that the user copy them to a dedicated directory on the host computer. Normally blocks reside in the target development sub tree \dev\app\frpc\blocks but this is not a requirement since the standard Windows file menu is provided to locate them in the run time.
6.2
Target Application Code: VxWorks Platform
6.2.1 Target Machine Software Configuration The software that is required for system startup and operation must be located on the target machine hard drive (with the exception of the boot disk). Since VxWorks is a real-time operating system, there are not too many hard disk formats that this OS can support. One that users might find easy to install and use is FAT-16. This is also a format that operating systems like MS-DOS and MS Windows can recognize. It is assumed that the user is using a FAT-16 disk format. 6.2.2 Hard Disk Formatting In order to use the hard drive and install the new software, the hard disk must first be formatted. The fastest way to do this is to use MS-DOS version 6 or higher, and follow the MS-DOS installation procedure from the Microsoft Corporation DOS User's Manual. The MS-DOS operating system has been chosen because of its fast boot time, fast installation time and small size. MS-DOS does not have to be installed, but
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
22
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
the user may find some MS-DOS external commands useful during the development process (such as the DOSKEY command that repeats the commands on the command prompt). MS-DOS is required for automatic software installation on the target system. The file system on the hard drive must be FAT-16. VxWorks only recognizes the primary FAT-16 partition. The other partitions (if installed) may be used for other purposes. 6.2.3 Target Platform Directory Structure A minimal fixed directory structure has to be maintained on the target machine as shown in Figure 6.
(C:) DOS TEMP VXWORKS APPS DRV KERNEL SCRIPTS
Figure 6 Target Platform Directory Structure
Table 2 (C:)
Directory Structure on the Target Machine Hard Drive
Comment
Directory Item
Root directory of the FAT-16 file system.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
23
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
Directory Item
Comment
Directory where the Disk Operating System (DOS) might be installed. /TEMP Temporary directory. /VXWORKS Root directory of the VxWorks operating system. /VXWORKS/APPS Directory where application code is stored. /VXWORKS/DRV Directory where PMC-Sierra software chip drivers and supporting binaries should be installed. /VXWORKS/ Directory where VxWorks kernel and VxWorks supporting KERNEL binaries should be installed. /VXWORKS/ Directory where VxWorks shell script files should be SCRIPTS installed. The most important script is startup.vxs which executes automatically during the system startup. This script must be located in this directory. The VxWorks directory structure will be created during automatic software installation. 6.2.4 Software Installation on the Target Platform Once the target platform has been prepared properly, the binaries supplied by PMC-Sierra have to be installed onto the target platform hard drive, and the source code supplied by PMC-Sierra has to be installed onto the software development platform. For the automatic installation, a MS-DOS CD-ROM driver must be installed properly on the target machine prior to installation. If the user wishes to set up the target platform manually, a CD-ROM is not required. 6.2.5 Making the VxWorks Boot Floppy The target system boots up off the VxWorks boot floppy. All the necessary files and utilities necessary to make a VxWorks boot floppy are located on the FRPC distribution CD-ROM. The following steps should be taken in order to make a bootable VxWorks floppy: 1. Put the FRPC distribution CD-ROM into your host machine CD-ROM drive. Open Windows Explorer and change the CD-ROM directory to \DEV\PLATFORM\VXWORKS\BSP_PENTIUM. 2. Put the blank floppy disk into your floppy drive and label it as "VxWorks Hard Disk Boot". Make sure the floppy disk is not write protected.
/DOS
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
24
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
3. Double-click on the mvxwbd.bat file. This action will open an MS-DOS window and start making the bootable VxWorks floppy. 4. Once the MS-DOS window has been closed, the VxWorks bootable floppy disk is ready and the user can remove it from the host machine floppy drive. The file bootrom.sys should exist on the bootable floppy. Note: the MS-DOS window may not close automatically after the MS-DOS task has been finished. In that case the MS-DOS box will have "Finished..." at its top left corner. The user should close the window manually. 6.2.6 Software Installation Steps The assumption is that the target VxWorks platform is equipped with a disk drive. The first step is to format the hard drive, and install MS-DOS on it. MS-DOS is used primarily to simplify the file transfer procedure. It is recommended that MSDOS version 6.21 be installed. Once the MS-DOS system is installed, we need to create the VxWorks directory structure: cd \ - position to the root directory md vxworks cd vxworks md kernel md scripts md apps Files necessary for the VxWorks target system installation are located in the appropriate directories starting from \Dev\Platform\VxWorks. If the target system is not equipped with the CD-ROM drive the user needs to copy files to floppy disk first. Now add the provided files to the appropriate directories: cd \vxworks\kernel copy a:\vxworks . copy a:\vxworks.sym . cd ..\scripts copy a:\vxconfig.txt cd ..\apps copy a:\frpc.out . Everything is set up now. Place the VxWorks boot floppy disk into the floppy drive and reboot the system. When the boot-up sequence finishes, the FRPC application will be loaded and automatically started.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
25
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
6.3
Target Application Code: MC68340 Microprocessor Platform The complete code that runs on the microprocessor will be loaded in the EPROM provided with the board, so no installation is needed. For the instructions on how to rebuild application code for the microprocessor platform, please refer to Appendix D.
6.4
PMC-Sierra Development Kit Distribution CD-ROM The Development Kit distribution CD-ROM contains all the necessary documentation and software required for the target platform. Once installed the target system is fully functional and ready to run.
Table 3
Contents of the Development Kit Distribution CD-ROM
Comment
Directory Item
(D:) /DOC /DEV /DEV/APP/ FRPC /DEV/APP/FRPC/ 68340 /DEV/APP/FRPC/ BLOCKS /DEV/APP/FRPC/ VxWorks /DEV/ CODEBASE /DEV/DRV /DEV/DRV/ FREEDM_NG /DEV/DRV/IF
Root directory of the distribution CD-ROM. Location of all the required documentation. Root directory of the distributed software. Root directory for the application specific FRPC software. Application specific code running on MC68340 microprocessor. Script files downloadable to one of the hardware platforms. Directory where the VxWorks operating system and its supporting binaries is located. Framework source code. Application and platform independent. Root directory containing device driver code. The FREEDM-84P672 device driver source code. Device and application specific source code. Commands and other device specific functions are located in this directory. Platform support code.
/DEV/ PLATFORM /DEV/ MC68340 platform support code (semaphores, clocks, PLATFORM/68340 com handler). /DEV/ VxWorks platform support code. PLATFORM/ VxWorks
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
26
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
Directory Item
Comment
/DEV/ PLATFORM/ VxWorks/KERNEL /DEV/ PLATFORM/ VxWorks/BSP /DEV/ PLATFORM/WIN
VxWorks kernel files. Location of the add-on source code for the Tornado 2 development system Board Support Package (BSP). Host application code running on Windows platform.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
27
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
(D:)
Doc
Dev
App
Frpc
68340 inc obj src Blocks
VxWorks inc PentiumGnu src Codebase inc src Drv IF inc src Platform 68340 inc src VxWorks inc src kernel bsp Win Freedm_NG inc src
Figure 7
FRPC Distribution CD-ROM Directory Structure
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
28
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
7
TARGET SYSTEM STARTUP This section provides the list of steps necessary to connect all the components of the Frame Relay Port Card development platform and start up the application software on the target platform. Plug a CPV5000 SBC motherboard into slot 0 of the target cPCI chassis. Plug the Frame Relay Port Card into one of the available cPCI slots. Connect the two black serial "Datalink" connectors into the COM1 and COM2 ports of the CPV5000. Connect one of the available COM ports on the host PC to COM1 on the target motherboard. This connection has to be made using a NULL modem cable from the host PC COM port to the DB-9 connector on the black "Datalink" connector. Connect COM2 on the target motherboard to the available COM port on the Frame Relay Port Card using the provided serial adapter (RJ-45 to DB-9). Note that the CPV5000 is configured as a DCE, while the combination of the Frame Relay Port Card serial port and the provided RJ-45 to DB-9 adapter form a DTE. Once the described connections are made and software installation on the target system is finished, the Frame Relay Port Card development platform is ready to run. The user should ensure that the BIOS bootup sequence on the target machine is "A: then C:". In order to run the system the user has to do the following: Insert the VxWorks boot floppy into the target machine floppy drive. Reboot the target platform (by either switching the power off and on, or pressing the reset button). After VxWorks finishes its boot up sequence, the VxWorks Shell command prompt should show up on the terminal platform. If there is no monitor attached to the target platform, the user can see when that the boot sequence is finished from the Terminal Window on the Remote Command Machine. The following lines appear when the target is ready (">>" is ready prompt):
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
29
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
>> Serial channel - 115200-8-N-1 newboard >>
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
30
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
8
OPERATIONS This section describes how to configure the Frame Relay Port Card for the following modes of operation: 1. 2. 3. 4. 5. T1 E1 DS-3 Unchannelised DS-3 T1 Serial Clock and Data via QDSX
Other modes of operation are supported by the Frame Relay Port Card, however scripts for these modes are not included on the distribution CD-ROM. Note that the following configurations can also be achieved by executing the appropriate setup.ini as part of a system self test. For example, to configure the board for T1 mode, select Self Test from the Function menu (from within HostApp) and then select the file setup_t1.ini. Similarly, to configure the board for E1 mode, select the file setup_e1.ini. 8.1 T1 Mode The following scripts (located on the distribution CD-ROM) must be loaded and executed (in the order provided) to configure the board for T1 mode of operation. 1. temuxconfig_all_T1.txt 2. temux_sbi.txt 3. frd_start_t1.txt 4. frd_fix.txt 5. frdprov_chall_t1.txt 6. frd_stst.txt
*
* - Only need to load if running the self test. 8.2 E1 Mode The following scripts (located on the distribution CD-ROM) must be loaded and executed (in the order provided) to configure the board for E1 mode of operation.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
31
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
1. temuxconfig_all_E1.txt 2. temux_sbi.txt 3. frd_start_E1.txt 4. frd_fix.txt 5. frdprov_chall_E1.txt 6. frd_stst.txt
*
* - Only need to load if running the self test. 8.3 DS-3 Mode The following scripts (located on the distribution CD-ROM) must be loaded and executed (in the order provided) to configure the board for DS-3 mode of operation. 1. config_alltmx_nlb_ds3.txt 2. temux_sbi.txt 3. frd_start_ds3.txt 4. frd_fix.txt 5. frdprov_chall_T1.txt 6. frd_stst.txt * * - Only need to load if running the self test. 8.4 Unchannelized DS-3 Mode The following scripts (located on the distribution CD-ROM) must be loaded and executed (in the order provided) to configure the board for unchannelized DS-3 mode of operation. 1. config_alltmx_nlb_ds3.txt 2. config_alltmx_nlb_unds3.txt 3. temux_sbi_ds3.txt
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
32
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
4. frdinit.txt 5. freedmds3.txt 6. freedm_sbi_uds3.txt 7. frdprov_chall_unds3.txt 8. frd_fix.txt 9. frd_stst.txt
*
* - Only need to load if running the self test. 8.5 T1 Serial Clock and Data via QDSX The following script (located on the distribution CD-ROM) must be loaded and executed to configure TEMUX3 for T1 serial clock and data mode of operation. 1. temux_qdsx.txt
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
33
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
9
APPENDIX A: COMMAND SET This section is provided to assist those developing their own host applications (i.e. own scripts using TCL). HostApp combined with the provided command block takes care of most of the syntax issues. The majority of commands supported by the FRPC software follows the common syntax as shown below. command devName The following are legal values for the parameter devName: temux1 temux2 temux3 spectra_w spectra_p qdsx freedm The exceptions are the command handler commands where device name is omitted. The command set may be divided into the following three groups: General commands - available on every system running framework. Device generic commands - same syntax and functionality regardless of the device or system. Commands that come in this group are: read, write, wwrite and watch. Device specific commands - all other commands.
9.1
General Commands
9.1.1 Command Handler Exit - s/w shutdown command. Syntax: exit List - The result of this command is a list of all the commands available on the particular logical board. Syntax: list
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
34
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
Identify - Request for identification from the particular target system. Unique identification for each logical board is provided at compile time. Syntax: identify Prompt - Toggle to suppress or enable prompt (">>") display. Syntax: prompt 9.1.2 Communication Port Control Echo - Controls character echo coming from target device Syntax: echo comN on|off Example: echo com1 on Fctrl - Flow control function is not implemented. 9.1.3 Block Handling Load - This command loads a block from the file blockName on the host to memory on board-N. The block will be appended to the target list of available blocks Syntax: load boardN block blockName Example: load board0 block frd_start.txt 62 Exec - Sends a request to the scripting processor to execute commands from block blockName. Syntax: exec boardN block blockName Example: exec board0 block frd_start.txt Del - Deletes block blockName from memory and removes it from the list of available blocks. Syntax: del boardN block blockName Example: del board0 block frd_start.txt Dir - Returns a list of currently loaded blocks. Syntax: dir boardN block Example: dir board0 block 9.1.4 File Handling Load - This command loads a file from the file fileName on the host to the current directory on the logical boardN. This command is only supported on systems with disk drives. Syntax: load boardN file fileName Example: load board0 file frpc.out 324567
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
35
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
Dir - List of files in the pathName directory. Syntax: dir boardN file pathName Example: dir board0 file /vxworks Del - Removes a file from the directory with the specified name. This command is disabled since it may cause unintended effects on system integrity if misused. Syntax: del board-N file fullFileName 9.1.5 Device Generic Commands Read - Reads data from register regNum on device devName. Syntax: read devName Params: - hex Example: read temux1 10 read spectra_p 0 Write - Writes to on device devName. Syntax: write devName Params: - hex, - hex. Example: write freedm 10 5 write spectra_w 32 8 Wwrite - Writes to and waits for BUSY bit to get reset. Maximum wait is 1ms and if BUSY bit stays set, the command fails. Syntax: wwrite devName Params: - hex, - hex. Example: wwrite temux3 20 10 Watch - Adds the watch request for on the specified device. Values are updated every 5sec, unless specified. All watches on the same device are parts of the same watch interface, therefore a period change for one of the monitored registers will affect the others. Watches on other devices are updated independently. Syntax: watch devName Params: - hex, decimal. Example: watch freedm 40 add 5 watch freedm period 20 watch freedm del
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
36
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
9.1.6 Board Specific Commands The following is the list of commands with explanations for board0. 9.1.6.1 Board0 Note 1: Prior to issuing any commands to the FREEDM-84P672, the device must be properly initialized. Please refer to the script frd_start.txt for further information. Note 2: Transmitting messages shorter than the CRC size (for example, one byte) are illegal. Remote - This command enables the user to send commands to devices on remote board. E.g. send remote write freedm Syntax: send remote 9.1.6.1.1 Freedm Device generic commands - all four generic commands apply to the FREEDM-84P672 device. Init - Command to initialize the FREEDM-84P672 device driver for the device devID on the board plugged into the specified cPCI slot. Syntax: init freedm Params: - hex value. This is an eight bit value where the upper four bits decode the slot number and lower four bits equal the ID of the FREEDM-84P672 device on that board. Since there is only one FREEDM-84P672 device on the FRPC, the deviceID nibble is set to 0. Note that the FREEDM-84P672 device driver expects the first slot to be 0. Example: init freedm 0x20 /* this command will initialize FREEDM-84P672 device on the board plugged into the third cPCI slot */ Remove - Closes the connection to the FREEDM-84P672 device driver and de-allocates all memory blocks allocated to that driver. Syntax: remove freedm Set - Command to load parameters necessary to initialize the FREEDM84P672 device. specifies link data type (FREEDM_T1_FRAMED, FREEDM_E1_FRAMED, FREEDM_T1_UNSTR, FREEDM_E1_UNSTR. The Default value is FREEDM_T1_UNSTR). Initialization vector contains
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
37
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
parameters to setup registers, buffers and rx/txLinkInfo. If omitted s/w provides default vector. Syntax: set freedm Params: - for details see the FREEDM-84P672 Programmer's Guide and driver Api source file frd_api.c. Example: set freedm t1_framed 0 Reset - freedm device s/w reset. This command is automatically executed when remove freedm command is issued. Syntax: reset freedm Activate - Installs Interrupt Service Routine and Deferred Processing Routine that handles the FREEDM-84P672 device interrupts. Syntax: activate freedm Deactivate - Removes Interrupt Service Routine and Deferred Processing Routine. Syntax: deactivate freedm Tx - Transmits through channel . Note that this command assumes that the full datapath, including channel provisioning, has been performed. Syntax: tx freedm Params: - decimal, - decimal Example: see paragraph 9.6. Selftest - This command has the same effect as Tx with the addition that the transmitted data will be recorded and checked against incoming data stream on the same channel. Syntax: selftest freedm Params: - decimal, - decimal Example: see paragraph 9.7. Txblock - This function enables large blocks of data to be send by the host and output to . Syntax: txblock freedm Params: - decimal, - decimal Rxprov - Provisions the FREEDM-84P672 receive channel to one or more time slots on the specified link. The Time slot value is entered as a hexadecimal number while all other values are decimal numbers. RHDL parameters are: offset, prov, strip, delin, priority, invert, crc and s7bit. For further information , please refer to section 9.5, the FREEDM-84P672 Data Sheet, and the FREEDM-84P672 Programmer's Guide.
PROPRIETARY AND CONFIDENTIAL TO PMC-SIERRA, INC., AND FOR ITS CUSTOMERS' INTERNAL USE
38
RELEASED
PM2355 FRAME RELAY PORT CARD
ISSUE 2 FRAME RELAY PORT CARD DEVELOPMENT KIT PLATFORM
PMC-2002057
Syntax: rxprov freedm


▲Up To Search▲   

 
Price & Availability of 2002057

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X